package com.ellecity06.cwhiskymall.adapter

import android.view.LayoutInflater
import android.view.ViewGroup
import com.ellecity06.common.base.BaseAdapter
import com.ellecity06.cwhiskymall.bean.TagItem
import com.ellecity06.cwhiskymall.databinding.ItemHistoryTagBinding

/**
 * @author ellecity06
 * @time 2024/11/1 18:49
 * @des
 */
class SearchHistoryAdapter : BaseAdapter<TagItem, ItemHistoryTagBinding>() {
    override fun inflateBinding(
        layoutInflater: LayoutInflater,
        parent: ViewGroup,
        viewType: Int
    ): ItemHistoryTagBinding {
        return ItemHistoryTagBinding.inflate(layoutInflater, parent, false)
    }

    override fun convert(binding: ItemHistoryTagBinding, position: Int, item: TagItem) {
        binding.tvTag.text = item.name
    }
}